package edu.umd.fosite.demos;

import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;

public class RaptorDemo extends GLDemo {

	public RaptorDemo() {
		
	}

	@Override
	protected void reshape(GL2 gl, int x, int y, int width, int height) {
	}

	@Override
	protected void init(GL2 gl) {
		gl.glClearColor(0, 0, 0, 0);

		gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_LINE);

		gl.glMatrixMode(GL2.GL_PROJECTION);
		gl.glLoadIdentity();

		GLU glu = new GLU();

		glu.gluPerspective(60, 1.0, 0.5, 300);
		glu.gluLookAt(-6, 0, 1, 0, 0, 0, -1, 0, 6);
	}

	@Override
	protected void dispose(GL2 gl) {

	}

	@Override
	protected void display(GL2 gl) {
		gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);
		
		gl.glMatrixMode(GL2.GL_PROJECTION);
		gl.glRotated(0.2, 0, 0, 1);

		gl.glMatrixMode(GL2.GL_MODELVIEW);
		gl.glLoadIdentity();

	}

}
